package com.learn.mapstruct.kit;

import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import lombok.experimental.UtilityClass;
import org.mapstruct.Named;

import java.util.List;

@Named("ConvertKit1")
public class ConvertKit1 {

	@Named("listToStrAlias")
	public static String listToStr(List<String> list) {
		return StrUtil.join(",", list);
	}

	@Named("toJson")
	public static String toJson(Object target) {
		return JSONUtil.toJsonStr(target);
	}



}
